package com.ddhcodeduck.common.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 通用的分页请求类
 */
@Data
@ApiModel(value = "分页请求类")
public class PageRequest {

    /**
     * 当前页号
     */
    @ApiModelProperty(value = "当前页号", example = "1")
    private Integer current;

    /**
     * 页面大小
     */
    @ApiModelProperty(value = "页面大小", example = "5")
    private Integer pageSize;

    /**
     * 排序顺序（默认升序）
     */
    @ApiModelProperty(value = "排序顺序（默认升序）")
    private String sortOrder = "asc";
}
